const Koa = require('koa');
const app = new Koa();
const cors = require('@koa/cors');

app.use(cors()); // 告诉浏览器，允许前端跨域
const router = require('./audio')
app.use(router.routes())
app.use(router.allowedMethods())

const port = 3000;
app.listen(port, '0.0.0.0', () => {
    console.log(`Server is running on port ${port}`);
});


